package kanq;

import java.net.URLEncoder;

import util.XMLHttpUtil;


public class InfoBySql {

	
	public void getInfobySql(){
		String headerStr="http://erp.kanq.com.cn:806/pages/ajaxrequest.jsp?data=";
		String sql="['a']=[# select us_ident from oa2_user where us_code='weichunxia']";
		String result=headerStr+sql;
		System.out.println(result);
	String s=	XMLHttpUtil.httpPost(result, "utf-8");
	System.out.println(s);
	}
	
	
	public static void main(String[] str){
		new InfoBySql().getInfobySql();
		
	}
	
}
